package com.pro.service.impl;

import com.pro.bean.Vipinfo;
import com.pro.dao.VipInfoDao;
import com.pro.service.VipInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 *vipInfo服务层实现类
 **/
@Service
public class VipInfoServiceImpl implements VipInfoService {
    //注入vip_SetmealDao接口
    @Autowired
    private VipInfoDao vipInfoDao;

    /**
     *插入vipInfo表所有的数据
     **/
    @Override
    public int insVipUserInfo(Vipinfo vipinfo) {
        return vipInfoDao.insVipUserInfo(vipinfo);
    }

    @Override
    public Vipinfo showVipInfo(int userId) {
        return vipInfoDao.showVipInfo(userId);
    }

    @Override
    public int oneVipStatus(int id) {
        return vipInfoDao.oneVipStatus(id);
    }

    @Override
    public Vipinfo queryIdStatus(int userId) {
        return vipInfoDao.queryIdStatus(userId);
    }

    @Override
    public int updStatus(Vipinfo vipinfo) {
        return vipInfoDao.updStatus(vipinfo);
    }


}
